#endif
#ifdef CONFIG_KALLSYMS
- /* Protected by RCU and/or module_mutex: use rcu_dereference() */
- struct mod_kallsyms *kallsyms;
- struct mod_kallsyms core_kallsyms;
+ /* bwh: Old kallsyms state; now just padding for ABI compat */
+ Elf_Sym *symtab, *core_symtab;
+ unsigned int num_symtab, core_num_syms;
+ char *strtab, *core_strtab;
/* Section attributes */
struct module_sect_attrs *sect_attrs;
ctor_fn_t *ctors;
unsigned int num_ctors;
#endif
+
+#if defined(CONFIG_KALLSYMS) && !defined(__GENKSYMS__)
+ /* Protected by RCU and/or module_mutex: use rcu_dereference() */
+ struct mod_kallsyms *kallsyms;
+ struct mod_kallsyms core_kallsyms;
+#endif
} ____cacheline_aligned;
#ifndef MODULE_ARCH_INIT
#define MODULE_ARCH_INIT {}